package com.dfba.Homework5;

public class Test {
    public static void main(String[] args) {
        Teacher teacher=new Teacher("马云",45);
        SportTeacher sportTeacher=new SportTeacher("大姚",35);
        Student student=new Student("小王",21);
        SportStudent sportStudent=new SportStudent("王总王",21);
        goToSport(sportStudent);
        goToSport(sportTeacher);
    }
    public static void goToSport(Sport sport){
       sport.playBasketball();
    }
}
